/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.repair.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.core.tenant.mp.TenantEntity;

import java.util.Date;

/**
 * 维保任务延期历史日志实体类
 *
 * @author ysq
 * @since 2022-11-19
 */
@Data
@TableName("blade_maintain_plan_defert_history")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MaintainPlanDefertHistory对象", description = "维保任务延期历史日志")
public class MaintainPlanDefertHistory extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 工单id
	 */
	@ApiModelProperty(value = "工单id")
	private Long planId;
	/**
	 * 保养类型1:非年审2：年审
	 */
	@ApiModelProperty(value = "保养类型1:非年审2：年审")
	private Integer planType;
	/**
	 * 工单日期：第一次排期的时间
	 */
	@ApiModelProperty(value = "工单日期：第一次排期的时间")
	private Date planDate;
	/**
	 * 工单每次的更新时间
	 */
	@ApiModelProperty(value = "工单每次的更新时间")
	private Date defertPlanDate;
	/**
	 * 0:初始化 1:提前2:延后，3：延期4：特殊
	 */
	@ApiModelProperty(value = "0:初始化 1:提前2:延后，3：延期4：特殊")
	private Integer defertType;
	/**
	 * 更新天数-单位天-相对上一次
	 */
	@ApiModelProperty(value = "更新天数-单位天-相对上一次")
	private Integer defertDays;
	/**
	 * 更新天数-单位天-相对第一次排计划
	 */
	@ApiModelProperty(value = "更新天数-单位天-相对第一次排计划")
	private Integer defertPlanDays;
	/**
	 * 调整描述
	 */
	@ApiModelProperty(value = "调整描述")
	private String defertDesc;

	/**
	 * 调整描述
	 */
	@ApiModelProperty(value = "调整描述")
	private String userDefertDesc;
	/**
	 * 描述图片
	 */
	@ApiModelProperty(value = "描述图片")
	private String defertImg;

	/**
	 * 描述图片
	 */
	@ApiModelProperty(value = "描述图片")
	private String userDefertImg;
	/**
	 * 项目id
	 */
	@ApiModelProperty(value = "项目id")
	private Long buildingId;
	/**
	 * 项目名称
	 */
	@ApiModelProperty(value = "项目名称")
	private String buildingName;
	/**
	 * 电梯id
	 */
	@ApiModelProperty(value = "电梯id")
	private Long elevatorId;
	/**
	 * 电梯名称
	 */
	@ApiModelProperty(value = "电梯名称")
	private String elevatorName;
	/**
	 * 创建人名称
	 */
	@ApiModelProperty(value = "创建人名称")
	private String createUserName;


}
